#ifndef __STAT_SCENE_H__
#define __STAT_SCENE_H__

#include "cocos2d.h"

class Star : public cocos2d::Sprite
{
public:
	static Star* create(int color);

    virtual bool init();
   
	enum starColor{
		PURPLE,
		BLUE,
		RED,
		YELLOW,
		GREEN
	};

	const static int MOVE_SPEED = 10;
	static const int STAR_WIDTH = 70;
	static const int STAR_HEIGHT = 70;
	void setDesPosition(const cocos2d::Point p);
	inline cocos2d::Point getDesPosition() { return desPosition; }
	inline void setSelected(bool b) { selected = b; }
	inline int getIndexI() { return index_i; }
	inline int getIndexJ() { return index_j; }
	inline void setIndex_IJ(int i, int j) { index_i = i; index_j = j; }  //????????????????

	int getStarColor();
	bool isSelected();
	void updatePosition();
private:
	cocos2d::Point desPosition;
	int color;
	int index_i;
	int index_j;
	bool selected;

private:
	char* getImage(int color);
};

#endif // __HELLOWORLD_SCENE_H__
